Skip to main content

Create

plz has the ability to scaffold whole projects and components for you. To create a new project, you need to provide the name and the type of project you want to create. There is a couple of default templates that plz will use based on the selected project type, but you can provide your own templates if you want.

Create a new react-app

Here is how you create a new react project using plz. The name of the project is new-project and type will be be react-app. You dont have to provide the type if you want to create a react-app since that is the default.

$ plz create new-project

After you run this command you can jump into the new project which has been created in the ./new-project directory.

Create a new react-component

This is most useful for when you want to create a standalone component, which you can publish on its own.

$ plz create -t react-component new-component

Create a new module

Very similar to the react-component type just without the react parts.

$ plz create -t module new-module
info

If none of the default templates work for you, here you can read more about custom templates.